using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region LoginLog

	/// <summary>
	/// LoginLog object for NHibernate mapped table 'LoginLog'.
	/// </summary>
	public class LoginLog
	{
		#region Member Variables
		
		protected int _id;
		protected DateTime _addDate;
		protected int _userId;
		protected string _userIp;

		#endregion

		#region Constructors

		public LoginLog() { }

		public LoginLog( DateTime addDate, int userId, string userIp )
		{
			this._addDate = addDate;
			this._userId = userId;
			this._userIp = userIp;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		public  virtual int UserId
		{
			get { return _userId; }
			set { _userId = value; }
		}

		public  virtual string UserIp
		{
			get { return _userIp; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for UserIp", value, value.ToString());
				_userIp = value;
			}
		}

		

		#endregion
	}
	#endregion
}